DOMSnapshotDomain

class DOMSnapshotDomain : Domain

This domain facilitates obtaining document snapshots with DOM, layout, and style information.

This API is marked as experimental in protocol definition and can change in the future.

Functions

captureSnapshot
Link copied to clipboard
fun captureSnapshot(input: CaptureSnapshotRequest): Single<CaptureSnapshotResponse>
Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes.
description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
Disables DOM snapshot agent for the given page.
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
Enables DOM snapshot agent for the given page.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getSnapshot
Link copied to clipboard
fun getSnapshot(input: GetSnapshotRequest): Single<GetSnapshotResponse>
Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes.
name
Link copied to clipboard
fun name(): String
Returns domain name.

Sources

jvm source
Link copied to clipboard